<!DOCTYPE HTML>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
    <link rel="stylesheet" href="../static/lib/editormd/css/editormd.min.css">
    <title>fenlei</title>
</head>

<body>
    <!--navgation-->
    <nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
        <div class="ui container">
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui teal header item">Manager</h2>
                <a href="#" class="active m-item item m-mobile-hide"><i class=" small home icon"></i>Home</a>
                <a href="#" class="m-item item m-mobile-hide"><i class=" small idea icon"></i>Category</a>
                <a href="#" class="m-item item m-mobile-hide"><i class=" small tags icon"></i>Tags</a>
                <div class="right m-item m-mobile-hide menu">
                    <div class="ui dropdown item">
                        <div class="text">
                            <img class="ui avatar image" src="../static/images/zhangtou.jpeg" alt="">
                            ZhangRuonan
                        </div>
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <a href="#" class="item">Logout</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
            <i class="sidebar icon"></i>
        </a>
    </nav>
    <div class="ui attached pointing menu">
        <div class="ui container">
            <div class="right menu">
                <a href="#" class="item">Issue</a>
                <a href="#" class="teal active item">List</a>
            </div>
        </div>
    </div>

    <!--main body content-->
    <div class="m-container-small m-padded-tb-big">
        <div class="ui container">
            <!--header-->
            <form action="#" method="post" class="ui form">
                <div class="required field">
                    <div class="ui left labeled input">
                        <div class="ui selection compact grey dropdown label">
                            <input type="hidden" value="original">
                            <i class="dropdown icon"></i>
                            <div class="text">original</div>
                            <div class="menu">
                                <div class="item" data-value="original">original</div>
                                <div class="item" data-value="reprint">reprint</div>
                                <div class="item" data-value="translate">translate</div>
                            </div>
                        </div>
                        <input type="text" name="title" placeholder="title">
                    </div>
                </div>

                <div class="field">
                    <div id="md-content" style="z-index: 1 !important">
                        <textarea placeholder="blogcontent" name="content" style="display: none">
                                [TOC]

                                #### Disabled options
                                
                                - TeX (Based on KaTeX);
                                - Emoji;
                                - Task lists;
                                - HTML tags decode;
                                - Flowchart and Sequence Diagram;
                        </textarea>
                    </div>
                    <textarea name="content" id="" cols="30" rows="10" placeholder="blog-content"></textarea>
                </div>

                <div class="two fields">
                    <div class="field">
                        <div class="ui left labeled action input">
                            <label class="ui compact grey basic label">Category </label>
                            <div class="ui fluid selection dropdown">
                                <input type="hidden" name="type">
                                <i class="icon dropdown"></i>
                                <div class="default text">Category</div>
                                <div class="menu">
                                    <div class="item" data-value="1">Error Log</div>
                                    <div class="item" data-value="2">Developer manual</div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left labeled action input">
                            <label class="ui compact grey basic label">Tags</label>
                            <div class="ui fluid selection multiple search dropdown">
                                <input type="hidden" name="tag">
                                <i class="icon dropdown"></i>
                                <div class="default text">Tags</div>
                                <div class="menu">
                                    <div class="item" data-value="1">Java</div>
                                    <div class="item" data-value="2">Java Script</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="field">
                    <div class="ui left labeled input">
                        <label for="" class="ui grey basic label">First Image</label>
                        <input type="text" name="indexPicture" placeholder="image get url">
                    </div>
                </div>

                <div class="inline fields">
                    <div class="field">
                        <div class="ui checkbox">
                            <input type="checkbox" id="recommend" name="recommend" checked class="hidden">
                            <label for="recommend">Recommend</label>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui checkbox">
                            <input type="checkbox" id="shareInfo" name="shareInfo" class="hidden">
                            <label for="shareInfo">ShareInfo</label>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui checkbox">
                            <input type="checkbox" id="appreciation" name="appreciation" class="hidden">
                            <label for="appreciation">Appreciation</label>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui checkbox">
                            <input type="checkbox" id="comment" name="comment" class="hidden">
                            <label for="comment">Comment</label>
                        </div>
                    </div>
                </div>

                <div class="ui error message"></div>

                <div class="ui right aligned container">
                    <button type="button" class="ui button" onclick="window.history.go(-1)">Back</button>
                    <button class="ui button secondary">Save</button>
                    <button class="ui teal button">Issue</button>
                </div>
            </form>
        </div>
    </div>


    <!--footer-->
    <footer class="ui inverted vertical segment m-padded-tb-massive">
        <div class="ui center aligned container">
            <div class="ui inverted divided stackable grid">
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/images/code-image.jpg" alt="" class="ui rounded image"
                                style="width: 110px">
                        </div>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced ">Latest Blog</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">User Story</a>
                        <a href="#" class="item">Learning List</a>
                        <a href="#" class="item">fail to early</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">Contact Us</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">Email:classicriver@qq.com</a>
                        <a href="#" class="item">QQ:1204263892</a>
                    </div>
                </div>
                <div class="seven wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">Explain</h4>
                    <p class="m-text-thin m-text-spaced m-opacity-mini">
                        This is my personal blog which records everything happend in my life.No matter what happend,I
                        will always smile.
                    </p>
                </div>
            </div>
            <div class="ui inverted section divider"></div>
            <p class="m-text-thin m-text-spaced m-opacity-tiny">
                Copyright @ 2019-2020 Lirenml Designed by GeniusTuang
            </p>
        </div>
    </footer>
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
    <script src="../static/lib/editormd/editormd.min.js"></script>
    <script>

        //init
        var contentEditor;
        $(function () {
            testEditor = editormd("md-content", {
                width: "100%",
                height: 640,
                syncScrolling: "single",
                path: "../static/lib/editormd/lib/"
            });
        });

        $('.menu.toggle').click(function () {
            $('.m-item').toggleClass('m-mobile-hide');
        });

        $('.ui.dropdown').dropdown({
            on: 'hover'
        });

        $('.ui.form').form({
            fields: {
                title: {
                    identifier: 'title',
                    rules: [{
                        type: 'empty',
                        prompt: 'title:please input title'
                    }]
                }
            }
        });

    </script>
</body>

</html>